package net.hn.hnms.biz.steelyard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.hn.hnms.biz.steelyard.domain.SteelyardNow;
import net.hn.hnms.biz.steelyard.vo.SteelyardNowVO;
import net.hn.hnms.biz.steelyard.vo.SteelyardStatisticsVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;

public interface SteelyardNowMapper extends BaseMapper<SteelyardNow> {


    List<SteelyardNow> selectHistoryList(@Param("deviceCodeSet") Set<String> deviceCodeSet, @Param("dataTimeSet") Set<String> dataTimeSet);

    Page<SteelyardNowVO> nowPageList(Page page, @Param("now") Date now, @Param("mineCode") String mineCode);

    Page<SteelyardNowVO> nowPageList2(Page page);

    Double nowLink(@Param("mineCode")String mineCode,@Param("date")String date);

    Double maxForYearLink(@Param("mineCode")String mineCode,@Param("date")String date);

    List<SteelyardNow> nowPageValue(@Param("deviceCodeSet") Set<String> deviceCodeSet, @Param("dataTimeSet") Set<String> dataTimeSet,@Param("mineCode") String mineCode);

    List<SteelyardStatisticsVO> selectYearNewList(@Param("dataTime") Date dataTime);

    List<SteelyardStatisticsVO> selectMonthNewList(@Param("dataTime") Date dataTime);
}









